/**
 * 
 */
package com.juliashine.common.util;

import java.io.*;


/**
 * @author Juliashine@gmail.com 2011-3-1
 *
 */
public class IOUtil {

	public static void close(Closeable obj){
		if(obj == null)
			return;
		try {
			obj.close();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	
	public static Reader getTextReader(String filePath){
		BufferedReader reader = null;
		try {
			reader = new BufferedReader(new FileReader(filePath));
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		} 
		return reader;
	}
	
	
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

}
